package com.usian.common.dtas;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.usian.model.common.dtos.ResponseResult;
import com.usian.model.common.enums.AppHttpCodeEnum;

public class BaseServiceImpl<M extends BaseMapper<T>, T> extends ServiceImpl<M,T> {

    public ResponseResult ErrorParam= ResponseResult.errorResult(AppHttpCodeEnum.PARAM_REQUIRE);
    public ResponseResult Success=ResponseResult.okResult(AppHttpCodeEnum.SUCCESS);
    public ResponseResult DatA=ResponseResult.errorResult(AppHttpCodeEnum.DATA_EXIST);
    public ResponseResult DATA_NOT_EXIST=ResponseResult.errorResult(AppHttpCodeEnum.DATA_NOT_EXIST);
    public ResponseResult ErrorPARAM_INV=ResponseResult.errorResult(AppHttpCodeEnum.PARAM_INVALID,"频道有效不能删除");

}
